import java.util.Scanner;
public class demo3 {
    public static void main(String[]args){
        System.out.println("请输入网购价格");
        Scanner sc =new Scanner(System.in);
        double price = sc.nextDouble();
        System.out.println("请输入客户和发货点之间的距离(公里数)");
        double distance = sc.nextDouble();
        if(distance<=10&distance>0){
            System.out.println("运费为:10元"+'\t' +"用户需要缴纳的总金额为:"+(distance+10.0));
        }else if(distance<=50&distance>10){
            System.out.println("运费为:50元"+'\t' +"用户需要缴纳的总金额为:"+(distance+50.0));
        }
        else if(distance<=100&distance>50){
            System.out.println("运费为:100元"+'\t' +"用户需要缴纳的总金额为:"+(distance+100.0));
        }
        else if(distance>100){
            System.out.println("运费为:200元"+'\t' +"用户需要缴纳的总金额为:"+(distance+200.0));
        }
    }
}
